#ifndef __WEBPAGESEARCHER_H__
#define __WEBPAGESEARCHER_H__

#include <string>
#include "WebPageQuery.h"
#include "TcpConnection.h"
#include "RedisCache.h"
using std::string;

class WebPageSearcher{
using TcpConnectionPtr = shared_ptr<TcpConnection>;
public:
    WebPageSearcher(/*const TcpConnectionPtr &conn*/);
    ~WebPageSearcher();

    void doQuery();
    void setKeys(string keys);
    void setTcpConnectionPtr(const TcpConnectionPtr& conn);

private:
    string _sought;                 //查询入口
    TcpConnectionPtr _conn;         //查询出口
};

#endif
